//
//  ViewController.m
//  DriveStudy
//
//  Created by chen on 2017/4/10.
//  Copyright © 2017年 chen. All rights reserved.
//

#import "ViewController.h"

@interface ViewController (){
    SelectView *selectView;
    IBOutlet UIButton *selectBtn;
}

@end

@implementation ViewController
- (IBAction)click:(UIButton *)sender {
    switch (sender.tag) {
        case 100:
        {
            [UIView animateWithDuration:0.3 animations:^{
                selectView.alpha = 1;
            }];
        }
            break;
        case 101:
        {
            FirstViewController *firstViewController = [[FirstViewController alloc]init];
            [self.navigationController pushViewController:firstViewController animated:YES];
        }
            break;
        case 102:
        {
            
        }
            break;
        case 103:
        {
            
        }
            break;
        case 104:
        {
            
        }
            break;
        default:
            break;
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    selectView = [[SelectView alloc]initWithFrame:self.view.frame andBtn:selectBtn];
    selectView.alpha = 0.0;
    [self.view addSubview:selectView];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
